package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties("handler")
public class FriendRelation extends BaseDomain{
    public static final Integer STATE_SUCCESS = 2; //成功
    public static final Integer STATE_AWAIT = 1; //等待
    public static final Integer STATE_APPLY = 0; //申请
    private User user=new User();

    private User friend;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
    private Date createTime;
    private Integer state=STATE_AWAIT;

}